<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'duoxuan.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  
  <body>
    This is my JSP page. <br>
    需求工作 :<select name="jobsort" id="jobsort" onClick="show();" size='0' ></select>
    <div id="d" style="display:none;  border:1px #000000 solid; width:480px;height:400px;z-index:5;">
 <script src="./includes/ajax.js"></script>
<script>
	var ajax=initAjax();
	ajax.open("get","<%=basePath%>servlet/JobSortServlet?id=a&r="+Math.random(),true);
	ajax.send(null);
	ajax.onreadystatechange = function(){
		if(ajax.readyState == 4){
		var d = document.getElementById("d");
			d.innerHTML= ajax.responseText;
				}
			}
		
function show(){
var d = document.getElementById("d");
	d.style.display="block";
}

</script>
</div>
  </body>
</html>
